<?php session_start();
if (isset($_SESSION['lang']))
    require_once "./language_files/delete_coauthor_" . $_SESSION['lang'] . ".php";
else
    require_once "./language_files/delete_coauthor_en.php";
require_once 'functions.php';
if (isset($_POST['paper']) && isset($_POST['email'])) {
    $paper = $_POST['paper'];
    $email = $_POST['email'];
    $d = mysql_query("DELETE FROM co_authors WHERE
                author_email = '$email' AND paper_id = $paper") or die(mysql_error());
    if ($d) {
        echo $lang['message_1'];
    } else {
        echo $lang['message_2'];
    }
    mysql_close();
}
?>
